package com.sen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 库存信息表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-01-08 17:54:40
 */
@Data
@TableName("warehouse")
public class WarehouseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId(type = IdType.AUTO)
	private Integer lno;
	/**
	 * 外键药品id
	 */
	private Integer mid;
	/**
	 * 数量
	 */
	private Integer count;
	/**
	 * 生产日期
	 */
	private Date indate;
	/**
	 * 保质期
	 */
	private Integer edate;
	/**
	 * 过期时间
	 */
	private Date outdate;
	/**
	 * 外键供应商主键
	 */
	private Integer sid;
	/**
	 * 修改时间
	 */
	private Date updatedate;
	/**
	 * 入库时间
	 */
	private Date createdate;

	@TableField(exist = false)
	private Integer oldCount;
	@TableField(exist = false)
	private Integer newCount;
	@TableField(exist = false)
	private Integer eid;
	@TableField(exist = false)
	private String mname;
}
